<%--                                                                       --%>
<%-- Copyright (c) 2005 BroadVision, Inc.  All rights reserved.            --%>
<%--                                                                       --%>
<%-- This software is copyrighted. Under the copyright laws, this software --%>
<%-- may not be copied, in whole or in part, without prior written consent --%>
<%-- of BroadVision, Inc. or its assignees. This software is provided      --%>
<%-- under the terms of a license between BroadVision and the recipient,   --%>
<%-- and its use is subject to the terms of that license.                  --%>
<%--                                                                       --%>
<%-- This software may be protected by one or more U.S. and International  --%>
<%-- patents.  Certain applications of BroadVision One-To-One software are --%>
<%-- covered by U.S. patent 5,710,887.                                     --%>
<%--                                                                       --%>
<%-- TRADEMARKS: BroadVision and BroadVision One-To-One are registered     --%>
<%-- trademarks of BroadVision, Inc., in the United States and the         --%>
<%-- European Community, and are trademarks of BroadVision, Inc., in other --%>
<%-- countries.  The BroadVision logo, is a trademark of BroadVision,      --%>
<%-- Inc., in the United States and other countries. Additionally, IONA    --%>
<%-- and Orbix are trademarks of IONA Technologies, Ltd.  RSA, MD5, and    --%>
<%-- RC2 are trademarks of RSA Data Security, Inc.                         --%>
<%--                                                                       --%>

<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %>
<%@ taglib uri="/WEB-INF/struts-bean-el.tld" prefix="bean-el" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<%
  String ctxPath = request.getContextPath();
%>

<script language="JavaScript">

//
//
//
function closeWindow() {
  self.close();
}

</script>

<table class="zoneFive" width="100%" border="0" cellspacing="0" cellpadding="0" summary="content area">
  <tr>
    <td valign="top" width="100%">
      <div class="generalWrapLeft" style="font-size: medium;">
<c:choose>
  <c:when test="${!mtGroupEditForm.map.edit}">
        <bean-el:message key="mt.group.create.page.title" bundle="mt.messages"/>
  </c:when>
  <c:otherwise>
        <bean-el:message key="mt.group.view.page.title" bundle="mt.messages" arg0="${mtGroupAdministratorsView.map.name}"/>
  </c:otherwise>
</c:choose>
      </div>
      <div class="generalWrapRight">
        <html-el:button property="closeWinBtn" styleClass="inputButton" onclick="javascript:closeWindow()">
          <bean-el:message key="button.close"  bundle="mt.messages"/>
        </html-el:button>
      </div> 
      <div class="errorMessage"><html-el:errors bundle="mt.messages"/></div>
      <div class="pageSubtitle">
        <span class="left"><bean-el:message key="mt.group.inherited.administrators" bundle="mt.messages"/></span>
        <span class="right">&nbsp;</span>
      </div>
      <table class="dataTable" border="0" cellspacing="1" cellpadding="2" summary="Search result table" width="100%">
        <tr class="listHeader">
          <th id="Name" align="left"><bean-el:message key="mt.header.name" bundle="mt.messages"/></th>
          <th id="Alias" align="left"><bean-el:message key="mt.group.inherited.administrators.header.signinId" bundle="mt.messages"/></th>
        </tr>
        <!-- results -->
<c:forEach var="user" items="${mtGroupAdministratorsView.map.users}" varStatus="index">
  <c:choose>
    <c:when test="${(index.count + 1) % 2 == 0}">
        <tr class="listEven">
    </c:when>
    <c:otherwise>
        <tr class="listOdd">
    </c:otherwise>
  </c:choose>
          <td headers="Name"><c:out value="${user.map.name}"/></td>
          <td headers="Alias"><c:out value="${user.map.signinId}"/></td>
        </tr>
</c:forEach>
<c:if test="${empty mtGroupAdministratorsView.map.users}">
        <tr class="listOdd">
          <td align="center" colspan="6">
            <bean:message key="mt.group.inherited.administrators.noFound" bundle="mt.messages"/>
          </td>
        </tr>
</c:if>
      </table>
    </td>
  </tr>
</table>
